package vo;

import org.apache.hadoop.hbase.util.Bytes;

import util.Utils;


public class Photo extends EnqueteVo{
	public static final String TABLENAME = "photo";
	public static final String CF_ATTRIBUTES = "attributes";
	public static final String PHOTO_TITLE = "title";
	public static final String PHOTO_LINK = "link";
	
	@Override
	public byte[] gerarId(String[] args) {
		byte [] userIdInBytes = Utils.createStringInBytes(args[0]);
		String photoId = Utils.retornarUUID(); 
		byte [] photoIdInBytes = Utils.createStringInBytes(photoId);
		return Bytes.add(userIdInBytes, photoIdInBytes);
	}

}
